package com.cragon.cglib;

import org.springframework.cglib.proxy.MethodInterceptor;
import org.springframework.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

/**
 * @Description: TODO
 * @Author: ZHOUHAILONG
 * @Date: 2021年03月15日 17:53
 */
public class ProxySource implements MethodInterceptor {

	@Override
	public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
//		System.out.println(o);
		System.out.println(method);
		System.out.println(objects);
		System.out.println(methodProxy);

		return methodProxy.invokeSuper(o, objects);
	}
}
